import request from '@/utils/request'

//获取智能目录分页列表
export function getAiDirPageList(data) {
	return request({
		method: 'get',
		url: 'tbNetAiDir/queryPageList',
		params: data
	})
}

//添加智能目录
export function addedAiDir(data) {
	return request({
		method: 'post',
		url: 'tbNetAiDir/add',
		data
	})
}

//删除智能目录
export function deleteAiDir(id) {
	return request({
		method: 'get',
		url: 'tbNetAiDir/delete/' + id
	})
}

//修改智能目录
export function updateAiDir(data) {
	return request({
		method: 'post',
		url: 'tbNetAiDir/update',
		data
	})
}

//智能目录详情
export function aiDirDetail(id) {
	return request({
		method: 'get',
		url: 'tbNetAiDir/query/' + id
	})
}